﻿#ifndef DLG1553_H
#define DLG1553_H

#include <QDialog>
#include <QSettings>
#include <QButtonGroup>

#include "enum.h"

namespace Ui {
class Dlg1553;
}

class Dlg1553 : public QDialog
{
    Q_OBJECT

public:
    explicit Dlg1553(QSettings* settings, const int level, QWidget *parent = nullptr);
    ~Dlg1553();

private:
    void initUI();
    void init();

private:
    Ui::Dlg1553 *ui;

    // 总线选择
    QButtonGroup* m_bgBus;

private:
    // INI配置文件
    QSettings* m_settings;

    // 测试级别
    int m_level;

signals:
    void sigFaultOccurred(const QString faultCode);


private slots:
    void onLogicVersionCheck();
    void onBus();
    void onSelfCheck();
    void onSync();
    void onReset();
};

#endif // DLG1553_H
